#include "gtkintl.h"
/**
- * SECTION:gtkshortcutlabel
- * @Title: GtkShortcutLabel
- * @Short_description: Displays a keyboard shortcut
- * @See_also: #GtkCellRendererAccel
+ * GtkShortcutLabel:
*
- * #GtkShortcutLabel is a widget that represents a single keyboard shortcut or gesture
- * in the user interface.
+ * `GtkShortcutLabel` displays a single keyboard shortcut or gesture.
+ *
+ * The main use case for `GtkShortcutLabel` is inside a [class@Gtk.ShortcutsWindow].
*/
struct _GtkShortcutLabel
object_class->set_property = gtk_shortcut_label_set_property;
/**
- * GtkShortcutLabel:accelerator:
+ * GtkShortcutLabel:accelerator: (attributes org.gtk.Property.get=gtk_shortcut_label_get_accelerator org.gtk.Property.set=gtk_shortcut_label_set_accelerator)
+ *
+ * The accelerator that @self displays.
*
- * The accelerator that @self displays. See #GtkShortcutsShortcut:accelerator
+ * See [property@Gtk.ShortcutsShortcut:accelerator]
* for the accepted syntax.
*/
properties[PROP_ACCELERATOR] =
(G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
- * GtkShortcutLabel:disabled-text:
+ * GtkShortcutLabel:disabled-text: (attributes org.gtk.Property.get=gtk_shortcut_label_get_disabled_text org.gtk.Property.set=gtk_shortcut_label_set_disabled_text)
*
* The text that is displayed when no accelerator is set.
*/
* gtk_shortcut_label_new:
* @accelerator: the initial accelerator
*
- * Creates a new #GtkShortcutLabel with @accelerator set.
+ * Creates a new `GtkShortcutLabel` with @accelerator set.
*
- * Returns: (transfer full): a newly-allocated #GtkShortcutLabel
+ * Returns: (transfer full): a newly-allocated `GtkShortcutLabel`
*/
GtkWidget *
gtk_shortcut_label_new (const char *accelerator)
}
/**
- * gtk_shortcut_label_get_accelerator:
- * @self: a #GtkShortcutLabel
+ * gtk_shortcut_label_get_accelerator: (attributes org.gtk.Method.get_property=accelerator)
+ * @self: a `GtkShortcutLabel`
*
* Retrieves the current accelerator of @self.
*
}
/**
- * gtk_shortcut_label_set_accelerator:
- * @self: a #GtkShortcutLabel
+ * gtk_shortcut_label_set_accelerator: (attributes org.gtk.Method.set_property=accelerator)
+ * @self: a `GtkShortcutLabel`
* @accelerator: the new accelerator
*
* Sets the accelerator to be displayed by @self.
}
/**
- * gtk_shortcut_label_get_disabled_text:
- * @self: a #GtkShortcutLabel
+ * gtk_shortcut_label_get_disabled_text: (attributes org.gtk.Method.get_property=disabled-text)
+ * @self: a `GtkShortcutLabel`
*
* Retrieves the text that is displayed when no accelerator is set.
*
}
/**
- * gtk_shortcut_label_set_disabled_text:
- * @self: a #GtkShortcutLabel
+ * gtk_shortcut_label_set_disabled_text: (attributes org.gtk.Method.set_property=disabled-text)
+ * @self: a `GtkShortcutLabel`
* @disabled_text: the text to be displayed when no accelerator is set
*
* Sets the text to be displayed by @self when no accelerator is set.